{"BYTES",TOPSITE_SORT_BYTES},
{"CONNECT",TOPSITE_SORT_CONNECT},
{"TIME",TOPSITE_SORT_TIME},
+ {"USER",TOPSITE_SORT_USER},
};
struct sort_list user_sort[]=
#define TOPSITE_SORT_BYTES 0x0002UL
#define TOPSITE_SORT_CONNECT 0x0004UL
#define TOPSITE_SORT_TIME 0x0008UL
+#define TOPSITE_SORT_USER 0x0010UL
#define USER_SORT_REVERSE SORT_REVERSE
#define USER_SORT_BYTES 0x0002UL
#
#topsites_num 100
-# TAG: topsites_sort_order CONNECT|BYTES|TIME A|D
+# TAG: topsites_sort_order CONNECT|BYTES|TIME|USER A|D
# Sort for topsites report, where A=Ascendent, D=Descendent
#
#topsites_sort_order CONNECT D
sortf="-k 2,2 -k 1,1";
} else if((TopsitesSort & TOPSITE_SORT_TIME) != 0) {
sortf="-k 3,3";
+ } else if((TopsitesSort & TOPSITE_SORT_USER) != 0) {
+ sortf="-k 4,4 -k 1,1 -k 2,2";
} else {
sortf="-k 2,2 -k 1,1"; //default is BYTES
}