Secondary sorting in API, sorting RT in client