This paper proposes a method to classify EEG signals using a support vector machine (SVM) classifier combined with a quicksort sorting algorithm (SVM-Q). The method involves extracting phase locking value (PLV) features from EEG data, sorting the feature vectors using quicksort, and then applying SVM classification. When tested on two BCI competition datasets, SVM-Q achieved classification accuracies of 86% and 77%, outperforming plain SVM which achieved 62% and 54% respectively. The paper concludes that adding a sorting algorithm to SVM can improve its classification performance for brain-computer interface applications.