B5: UPS chart re-sorts already-sorted data #5
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug
File:
web/components/ChartCard/UpsChart.tsx:35-40API returns UPS data with
ORDER BY real_time ASC— guaranteed sorted. The component sorts again unconditionally.Impact
Wasted O(n log n) per chart render for no reason.
Code reference
Fix
Remove the sort. API already guarantees
ORDER BY real_time ASC. If tick-mode sorting differs, handle at query level instead.