added javascript sort method to array of objects

4 lines tho!