Creating a sorting function in pure Sass