Added function to order objects by an array of properties in main.js. It is now being used in the groups page