Fixes alphabetical sorting of results

Previously, the list returned contained all capitalised SSIDs, sorted
alphabetically then all lowercase SSIDs.