nwl-components 1.6.0 → 1.7.0

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/README.md CHANGED
@@ -132,7 +132,8 @@ render();
132
132
  ```
133
133
 
134
134
  - `sortRows(rows, { key, type }, ascending = true)`: a new, sorted array (stable; missing
135
- values last in both directions; `localeCompare` for strings). `sortValue(row, column)`
135
+ values last in both directions; strings in natural order, `localeCompare` with
136
+ `numeric: true`, so "E90" comes before "E120"; since 1.6.1). `sortValue(row, column)`
136
137
  is the value it compares.
137
138
  - `sortableHeader(th, { direction, onSort })` turns a `<th>` into SortableTh's markup
138
139
  (`class="nwl-sortable"`, `aria-sort`, a `<button type="button">` with the th's content