Is there anything wrong with sorting local time by UTC timestamp?
I store time as Unix timestamps in UTC and output local time in a pretty complex format that is user friendly but would be a nightmare to sort. So I decided to sort it by UTC time.
Here is an exaggerated example:
<td data-utc-timestamp="1514372400">
<b>7:00<i>PM</i></b> December 27th,
beautiful Wednesday evening in Shanghai,
the year of the Rooster, 2017 :D
</td>
Seems perfectly fine to me to sort this by UTC timestamp, but I am not an expert in the field so I am having doubts.
Is there any scenario where an array of UTC times will have a different order than the same array of UTC times converted to local times?