First try at sorting