From 15ebf045d6fd1776f97c0b5c855d86b2ee1b64da Mon Sep 17 00:00:00 2001 From: gazebo Date: Wed, 23 Oct 2019 14:27:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DStore4UserList.Less=E7=9A=84b?= =?UTF-8?q?ug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/store.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index c33f5d84d..6c4adf249 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -92,8 +92,8 @@ func (x Store4UserList) Len() int { } func (x Store4UserList) Less(i, j int) bool { - if x[i].WalkDistance != x[j].Distance { - return x[i].WalkDistance < x[j].Distance + if x[i].WalkDistance != x[j].WalkDistance { + return x[i].WalkDistance < x[j].WalkDistance } return x[i].Distance < x[j].Distance }