reverse size sorting
I don't know why I did that in the first place
This commit is contained in:
parent
95970274d8
commit
b16a8101d5
|
@ -44,13 +44,13 @@ func SortByModifiedReverse(a, b File) int {
|
||||||
func SortBySize(a, b File) int {
|
func SortBySize(a, b File) int {
|
||||||
as := getSortingSize(a)
|
as := getSortingSize(a)
|
||||||
bs := getSortingSize(b)
|
bs := getSortingSize(b)
|
||||||
return cmp.Compare(bs, as)
|
return cmp.Compare(as, bs)
|
||||||
}
|
}
|
||||||
|
|
||||||
func SortBySizeReverse(a, b File) int {
|
func SortBySizeReverse(a, b File) int {
|
||||||
as := getSortingSize(a)
|
as := getSortingSize(a)
|
||||||
bs := getSortingSize(b)
|
bs := getSortingSize(b)
|
||||||
return cmp.Compare(as, bs)
|
return cmp.Compare(bs, as)
|
||||||
}
|
}
|
||||||
|
|
||||||
func SortByName(a, b File) int {
|
func SortByName(a, b File) int {
|
||||||
|
|
Loading…
Reference in a new issue