結果 : how to sort an array of objects based on a string property in javascript