@kigi/components 1.8.8 → 1.8.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -21,6 +21,7 @@ export class MbgSelectMultiListController {
|
|
|
21
21
|
private inputValueResult: string
|
|
22
22
|
private pagination
|
|
23
23
|
private order
|
|
24
|
+
private fieldOrder
|
|
24
25
|
|
|
25
26
|
constructor(
|
|
26
27
|
public $scope,
|
|
@@ -162,6 +163,7 @@ export class MbgSelectMultiListController {
|
|
|
162
163
|
|
|
163
164
|
executeSort(field, dir) {
|
|
164
165
|
this.order = dir
|
|
166
|
+
this.fieldOrder = field
|
|
165
167
|
this.dataModel = this.dataModel.sort((a, b) =>
|
|
166
168
|
typeof _get(a, field) == 'string'
|
|
167
169
|
? _get(dir == 'asc' ? a : b, field).localeCompare(_get(dir == 'asc' ? b : a, field))
|