Hello again,
It seems to me that the problem is on the sort command ...
address@hidden BaseConcepts]$ sort kk2
icecream%1:13:00:: 07510835 1 0
ice_cream%1:13:00:: 07510835 1 1
life_style%1:07:00:: 04875322 1 2
part-time%3:00:00:: 01131371 1 21
address@hidden BaseConcepts]$ sort -k 1,2 kk2
ice_cream%1:13:00:: 07510835 1 1
icecream%1:13:00:: 07510835 1 0
life_style%1:07:00:: 04875322 1 2
part-time%3:00:00:: 01131371 1 21
which seems to apply different criteria depending on
the length of the lines ...
Best,
German