@@ -3,6 +3,7 @@ const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const priceInfoArea = new Schema({
+ serialNo: Number,
ID: String,
compilationID: String,
name: String
@@ -1633,6 +1633,7 @@ let projectGljObject = {
createSelectOptions: function (ele, opts, isArea) {
ele.empty();
let str = `<option value=""></option>`;
+ opts.sort((a, b) => a.serialNo - b.serialNo);
for (let o of opts) {
if (isArea == true) {
str += `<option value="${o.ID}">${o.name}</option>`