alphasort is expected to disappear from a future version of the LSB; applications should provide their own routine to sort filenames. 
alphasort can be used as the comparison function for the scandir function to sort directory entries into alphabetical order. Its parameters are the two directory entries, a and b, to compare.
alphasort returns an integer less than, equal to, or greater than 0, where a is considered to be less than, equal to, or greater than b, respectively.
The LSB never has contained scandir.