added sort to clients