Change JSON API sorting criteria

Criteria from priotiry changed to id
* Use redis SORT instead of ZRANGE
* Remove sorting in map function