Most things stop working when ordered by epoch time, reverted part of code