Requests and QueryBuilder changed

Changed requests (mapdata) and added a sort by function in QueryBuilder