I think there is probably some explanation but I just do not understand why it is behaving like this:
$ sort -k 2 -t "|" tests/resources/event1.txt
20180611|10|2|edf|8|abc
20180611|1|2|edf|1|abc
20180611|15|2|edf|15|abc
20180611|2|2|edf|2|abc
20180611|5|2|edf|1|abc
20180611|6|2|edf|1|abc
20180611|7|2|edf|8|abc
20180611|8|2|edf|3|abc
So why 10 comes before 1 and then 1 comes before 15? Either I should have 10, 15, 1 or 1,10,15 right? Why mixed up like this?