Adjust README.md and allow left and right arrow keys to navigate
[pstop.git] / i_s / pl_by_user.go
index cd7bf9c..ae5b4aa 100644 (file)
@@ -118,7 +118,8 @@ func (t ByRunTime) Len() int      { return len(t) }
 func (t ByRunTime) Swap(i, j int) { t[i], t[j] = t[j], t[i] }
 func (t ByRunTime) Less(i, j int) bool {
        return (t[i].runtime > t[j].runtime) ||
-               ((t[i].runtime == t[j].runtime) && (t[i].connections > t[j].connections))
+               ((t[i].runtime == t[j].runtime) && (t[i].connections > t[j].connections)) ||
+               ((t[i].runtime == t[j].runtime) && (t[i].connections == t[j].connections) && (t[i].username < t[j].username))
 }
 
 func (t pl_by_user_rows) Sort() {