File tree Expand file tree Collapse file tree 1 file changed +21
-11
lines changed Expand file tree Collapse file tree 1 file changed +21
-11
lines changed Original file line number Diff line number Diff line change @@ -272,17 +272,27 @@ angular.module('ui.grid')
272
272
*
273
273
*/
274
274
275
- /**
276
- * @ngdoc property
277
- * @name sort
278
- * @propertyOf ui.grid.class:GridOptions.columnDef
279
- * @description An object of sort information, attributes are:
280
- *
281
- * - direction: values are uiGridConstants.ASC or uiGridConstants.DESC
282
- * - ignoreSort: if set to true this sort is ignored (used by tree to manipulate the sort functionality)
283
- * @example
284
- * <pre> $scope.gridOptions.columnDefs = [ { field: 'field1', sort: { direction: uiGridConstants.ASC, ignoreSort: true }}] </pre>
285
- */
275
+ /**
276
+ * @ngdoc property
277
+ * @name sort
278
+ * @propertyOf ui.grid.class:GridOptions.columnDef
279
+ * @description An object of sort information, attributes are:
280
+ *
281
+ * - direction: values are uiGridConstants.ASC or uiGridConstants.DESC
282
+ * - ignoreSort: if set to true this sort is ignored (used by tree to manipulate the sort functionality)
283
+ * - priority: says what order to sort the columns in (lower priority gets sorted first).
284
+ * @example
285
+ * <pre>
286
+ * $scope.gridOptions.columnDefs = [{
287
+ * field: 'field1',
288
+ * sort: {
289
+ * direction: uiGridConstants.ASC,
290
+ * ignoreSort: true,
291
+ * priority: 0
292
+ * }
293
+ * }];
294
+ * </pre>
295
+ */
286
296
287
297
288
298
/**
You can’t perform that action at this time.
0 commit comments