Fixed Sorting Bug, should work now