SortIndexes sorts the indexes into our Table directly in numerical order, producing the native ordering, while preserving any filtering that might have occurred.
()
| 118 | // numerical order, producing the native ordering, while preserving |
| 119 | // any filtering that might have occurred. |
| 120 | func (ix *IndexView) SortIndexes() { |
| 121 | sort.Ints(ix.Indexes) |
| 122 | } |
| 123 | |
| 124 | const ( |
| 125 | // Ascending specifies an ascending sort direction for table Sort routines |