Fixed bug in non-alpha sorting