Skip to content

Commit 5aa62af

Browse files
Notes updates
1 parent ada3c7f commit 5aa62af

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## `multisort` - NoneType Safe Multi Column Sorting
1+
## `multisort` - NoneType Safe Multi Column Sorting For Python
22

33
Simplified multi-column sorting of lists of tuples, dicts, lists or objects that are NoneType safe.
44

@@ -69,6 +69,21 @@ rows_sorted = msorted(rows_dict, [
6969
])
7070
7171
```
72+
`msorted` parameters:
73+
option|dtype|description
74+
---|---|---
75+
`key`|int or str|Key to access data. int for tuple or list
76+
`spec`|str, int, list|Sort specification. Can be as simple as a column key / index
77+
`reverse`|bool|Reverse order of final sort (defalt = False)
78+
79+
`msorted` `spec` options:
80+
option|dtype|description
81+
---|---|---
82+
reverse|bool|Reverse sort of column
83+
clean|func|Function / lambda to clean the value
84+
none_first|bool|If True, None will be at top of sort. Default is False (bottom)
85+
86+
7287

7388
### `sorted` with `reversor`
7489
Sort rows_dict by _grade_, descending, then _attend_ and call upper() for _grade_:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "multisort"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
description = "NoneType Safe Multi Column Sorting For Python"
55
license = "MIT"
66
authors = ["Timothy C. Quinn"]

0 commit comments

Comments
 (0)