added sortByName function (thx @jippi)