* fixed bug in foo sorting