#288 adding sorting param in API