got sort working