|
|
@@ -704,6 +704,7 @@ const gclGatherModel = (function () {
|
|
|
function _gatherAncillaryGcl(gcl, fields = ['jldy']) {
|
|
|
fields.push('is_aux', 'name', 'unit');
|
|
|
gcl.gatherAncGcl = [];
|
|
|
+ const pinyin = new PinYinOrder();
|
|
|
for (const lx of gcl.ancGcl) {
|
|
|
const condition = {};
|
|
|
for (const f of fields) {
|
|
|
@@ -719,7 +720,7 @@ const gclGatherModel = (function () {
|
|
|
}
|
|
|
gcl.gatherAncGcl.sort((a, b) => {
|
|
|
if (a.is_aux === b.is_aux) {
|
|
|
- return a.name < b.name ? -1 : 1;
|
|
|
+ return pinyin.compareWord(a.name, b.name);
|
|
|
} else {
|
|
|
return a.is_aux - b.is_aux;
|
|
|
}
|