diff options
| author | Drahflow <drahflow@gmx.de> | 2015-08-26 12:38:25 +0200 |
|---|---|---|
| committer | Drahflow <drahflow@gmx.de> | 2015-08-26 12:38:25 +0200 |
| commit | b59729c17f6ea4ebcec986683e2c60902e7c6fa8 (patch) | |
| tree | 077f539c00545b7310935aadae9c8a94d2d08085 /elymas | |
| parent | 42a294b106f9024ff24d5a3f2a053aef89e732ca (diff) | |
Don't crash on [] in sort
Diffstat (limited to 'elymas')
| -rw-r--r-- | elymas/lib/sort.ey | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/elymas/lib/sort.ey b/elymas/lib/sort.ey index 2cac3cf..6692cf2 100644 --- a/elymas/lib/sort.ey +++ b/elymas/lib/sort.ey @@ -15,7 +15,9 @@ ] } ? * } /mergeSort deffst - 0 |d len 1 sub mergeSort + |a len { + 0 |d len 1 sub mergeSort + } { [ ] } ? * } /order deffd { _ |lt order -01 { * }_ [ 0 ] [ 0 ] '' * } /sort deffd |
