mirror of
https://github.com/TangentFoxy/lume.git
synced 2024-11-19 07:04:24 +00:00
Fixed typo in lume.sort()'s README section
This commit is contained in:
parent
edd7c99382
commit
f7b3eb64bb
@ -80,7 +80,7 @@ Returns a shuffled copy of the array `t`.
|
|||||||
### lume.sort(t [, comp])
|
### lume.sort(t [, comp])
|
||||||
Returns a copy of the array `t` with all its items sorted. If `comp` is a
|
Returns a copy of the array `t` with all its items sorted. If `comp` is a
|
||||||
function it will be used to compare the items when sorting. If `comp` is a
|
function it will be used to compare the items when sorting. If `comp` is a
|
||||||
string the it will be used as the key to sort the items by.
|
string it will be used as the key to sort the items by.
|
||||||
```lua
|
```lua
|
||||||
lume.sort({ 1, 4, 3, 2, 5 }) -- Returns { 1, 2, 3, 4, 5 }
|
lume.sort({ 1, 4, 3, 2, 5 }) -- Returns { 1, 2, 3, 4, 5 }
|
||||||
lume.sort({ {z=2}, {z=3}, {z=1} }, "z") -- Returns { {z=1}, {z=2}, {z=3} }
|
lume.sort({ {z=2}, {z=3}, {z=1} }, "z") -- Returns { {z=1}, {z=2}, {z=3} }
|
||||||
|
Loading…
Reference in New Issue
Block a user