added a function to order json objects, cleaned up the code a bit
added a function to order json objects, cleaned up the code a bit

michael-allram/travelcounsellor,michael-allram/travelcounsellor,michael-allram/travelcounsellor