Fossil SCM

Fix a sorting bug on the /artifact_stats page.

drh 2017-12-09 22:07 trunk
Commit 04bcc6ce6e7fa34bb882a3a5e470c1152c79bcbfa6510f76047021a7fd276544
1 file changed +1 -1
+1 -1
--- src/stat.c
+++ src/stat.c
@@ -648,11 +648,11 @@
648648
"SELECT atype, count(*), sum(isDelta), sum(szCmpr), sum(szExp)"
649649
" FROM artstat GROUP BY 1"
650650
" UNION ALL "
651651
"SELECT 'ALL', count(*), sum(isDelta), sum(szCmpr), sum(szExp)"
652652
" FROM artstat"
653
- " ORDER BY 5;"
653
+ " ORDER BY 4;"
654654
);
655655
@ <table class='sortable' border='1' \
656656
@ data-column-types='tkkkkk' data-init-sort='5'>
657657
@ <thead><tr>
658658
@ <th>Artifact Type</th>
659659
--- src/stat.c
+++ src/stat.c
@@ -648,11 +648,11 @@
648 "SELECT atype, count(*), sum(isDelta), sum(szCmpr), sum(szExp)"
649 " FROM artstat GROUP BY 1"
650 " UNION ALL "
651 "SELECT 'ALL', count(*), sum(isDelta), sum(szCmpr), sum(szExp)"
652 " FROM artstat"
653 " ORDER BY 5;"
654 );
655 @ <table class='sortable' border='1' \
656 @ data-column-types='tkkkkk' data-init-sort='5'>
657 @ <thead><tr>
658 @ <th>Artifact Type</th>
659
--- src/stat.c
+++ src/stat.c
@@ -648,11 +648,11 @@
648 "SELECT atype, count(*), sum(isDelta), sum(szCmpr), sum(szExp)"
649 " FROM artstat GROUP BY 1"
650 " UNION ALL "
651 "SELECT 'ALL', count(*), sum(isDelta), sum(szCmpr), sum(szExp)"
652 " FROM artstat"
653 " ORDER BY 4;"
654 );
655 @ <table class='sortable' border='1' \
656 @ data-column-types='tkkkkk' data-init-sort='5'>
657 @ <thead><tr>
658 @ <th>Artifact Type</th>
659

Keyboard Shortcuts

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