Fixed #52 Sorting not working