Added string sorting function because why the hell not