1
0
mirror of https://github.com/fumiama/jieba.git synced 2026-06-22 12:10:30 +08:00

tiny code refactor

This commit is contained in:
Wang Bin
2015-02-26 15:34:58 +08:00
parent c2abc24083
commit 55751ed04d

View File

@@ -37,7 +37,8 @@ func (routes Routes) Less(i, j int) bool {
routej := routes[j] routej := routes[j]
if routei.Freq < routej.Freq { if routei.Freq < routej.Freq {
return true return true
} else if routei.Freq == routej.Freq { }
if routei.Freq == routej.Freq {
return routei.Index < routej.Index return routei.Index < routej.Index
} }
return false return false