kk (Kirill /)
- Login: kk
- Registered on: 06/17/2020
- Last sign in: 11/20/2020
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 1 | 1 |
Activity
06/17/2020
-
11:36 PM Ruby Bug #16966 (Rejected): Unexpected behavior of sort method
- The ruby cook book from 2015 has the following example of using `sort` method:
``` ruby
[1,100,42,23,26,1000].sort {|x,y| x==42 ? 1 : x<=>y }
# => [1, 23, 26, 100, 10000, 42]
```
It actually returned `[1, 23, 26, 42, 100, 1000]...