1. A method for determining an active code set, comprising: determining code detection statistics for corresponding spread code indices; sorting the determined code detection statistics and the corresponding spread code indices according to amplitudes of the code detection statistics; and determining an active code set based on the sorted code detection statistics and the corresponding sorted spread code indices.