A small application to sort strings according to a given delimiter