fixed sorting by type

problem was with dot as separator in the sort function. changed it to |
Merge pull request #5 from ali1k/patch-1

fixed sorting by type