Implemented order in json output. Fixed some issues with category indexes. Now functions work like rjstat