Skip to content

Commit 18c46e5

Browse files
buzz-codeclaude
andauthored
teacher-reported-today: sort cards by reportHour ascending (#181)
Cards were sorted by reportDate DESC, which is a no-op within a single day (the default filter view) since every row shares the same date - actual card order fell back to whatever order the view query happened to return. Sort by reportHour ascending instead, so the earliest report of the day shows first. Claude-Session: https://claude.ai/code/session_01KeX6BFe7P4pHLPm3VwFjPn Co-authored-by: Claude <noreply@anthropic.com>
1 parent bd25804 commit 18c46e5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎client/src/entities/teacher-reported-today.jsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ const List = ({ filter = {} }) => {
155155
filterDefaultValues={filterDefaultValues}
156156
exporter={false}
157157
empty={<EmptyPage />}
158-
sort={{ field: 'reportDate', order: 'DESC' }}
158+
sort={{ field: 'reportHour', order: 'ASC' }}
159159
configurable={false}
160160
perPage={LIST_PAGE_SIZE}
161161
pagination={false}
@@ -171,7 +171,7 @@ const entity = {
171171
filterDefaultValues,
172172
exporter: false,
173173
configurable: false,
174-
sort: { field: 'reportDate', order: 'DESC' },
174+
sort: { field: 'reportHour', order: 'ASC' },
175175
};
176176

177177
export default { ...getResourceComponents(entity), list: List };

0 commit comments

Comments
 (0)