Fossil SCM

In /admin_log, add rowid DESC to the ORDER BY so that entries with the same timestamp predictably sort newest-first.

stephan 2023-02-24 23:38 forumpost-locking
Commit 914c6b5a0e585e3c711d7c02507c68b7502dd881a91094d3ef55a1415aef2260
1 file changed +1 -1
+1 -1
--- src/setup.c
+++ src/setup.c
@@ -1972,11 +1972,11 @@
19721972
@ <p><a href="admin_log?n=%d(limit)&x=%d(prevx)">[Newer]</a></p>
19731973
}
19741974
db_prepare(&stLog,
19751975
"SELECT datetime(time,'unixepoch'), who, page, what "
19761976
"FROM admin_log "
1977
- "ORDER BY time DESC");
1977
+ "ORDER BY time DESC, rowid DESC");
19781978
style_table_sorter();
19791979
@ <table class="sortable adminLogTable" width="100%%" \
19801980
@ data-column-types='Tttx' data-init-sort='1'>
19811981
@ <thead>
19821982
@ <th>Time</th>
19831983
--- src/setup.c
+++ src/setup.c
@@ -1972,11 +1972,11 @@
1972 @ <p><a href="admin_log?n=%d(limit)&x=%d(prevx)">[Newer]</a></p>
1973 }
1974 db_prepare(&stLog,
1975 "SELECT datetime(time,'unixepoch'), who, page, what "
1976 "FROM admin_log "
1977 "ORDER BY time DESC");
1978 style_table_sorter();
1979 @ <table class="sortable adminLogTable" width="100%%" \
1980 @ data-column-types='Tttx' data-init-sort='1'>
1981 @ <thead>
1982 @ <th>Time</th>
1983
--- src/setup.c
+++ src/setup.c
@@ -1972,11 +1972,11 @@
1972 @ <p><a href="admin_log?n=%d(limit)&x=%d(prevx)">[Newer]</a></p>
1973 }
1974 db_prepare(&stLog,
1975 "SELECT datetime(time,'unixepoch'), who, page, what "
1976 "FROM admin_log "
1977 "ORDER BY time DESC, rowid DESC");
1978 style_table_sorter();
1979 @ <table class="sortable adminLogTable" width="100%%" \
1980 @ data-column-types='Tttx' data-init-sort='1'>
1981 @ <thead>
1982 @ <th>Time</th>
1983

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button