Changed the sort function to uses strcmp...

... instead of a self written compare. Thanks @Baachi.