var _sort = function(field) { return function(a, b) { var x, y; x = a.attributes[field].toLowerCase(); y = b.attributes[field].toLowerCase(); return (x < y) ? -1 : 1; }; }; _featureSet.features.sort(_sort('FIELD_NAME'));
I needed to sort by two fields
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.