Merge remote-tracking branch 'origin/master'

pull/132/head
macbookpro 2018-12-15 17:40:55 +08:00
commit 5f1d0ab96d
2 changed files with 7 additions and 7 deletions

View File

@ -106,10 +106,10 @@ func (pr *PageResult) Sort(by, order string) *PageResult {
break
}
}
}
if byIdx == -1 {
log.Printf("%v field name[%s] not found, case insensitive", te, by)
return pr
if byIdx == -1 {
log.Printf("%v field name[%s] not found, case insensitive", te, by)
return pr
}
}
sort.Slice(pr.Rows, func(i, j int) (ret bool) {
va := reflect.ValueOf(pr.Rows).Index(i)

6
vendor/vendor.json vendored
View File

@ -243,10 +243,10 @@
"revisionTime": "2018-09-07T02:33:35Z"
},
{
"checksumSHA1": "1+jDqOOmKfkxmqBhm1hp5a70Qx4=",
"checksumSHA1": "38aBVjLg48devHs7imW6AeWQ/Ho=",
"path": "github.com/penggy/EasyGoLib/utils",
"revision": "06f9b72921eecd9499778c905788e7bbcff1a217",
"revisionTime": "2018-11-29T14:20:46Z"
"revision": "c61bc7ee568dd64a40f19ff44e32db22134226d9",
"revisionTime": "2018-12-13T05:46:04Z"
},
{
"checksumSHA1": "SBuXxdLcdTlDcOvRYEpnP0zp810=",