메시지 전송 시 장수명 순서대로 정렬

This commit is contained in:
2018-09-18 02:31:41 +09:00
parent ab197489d7
commit 8ca0d0ced4
+10
View File
@@ -257,6 +257,16 @@ function refreshMailboxList(obj){
$optgroup.css('color', 'white');
}
nation.general.sort(function(lhs, rhs){
if(lhs[1] < rhs[1]){
return -1;
}
if(lhs[1] > rhs[1]){
return 1;
}
return 0;
});
$.each(nation.general, function(){
var generalID = this[0];
var generalName = this[1];