Resolved some bugs with the getting data. Sorting is configurable.