Sorting in ReactJS