Fixing potential &" crash due to non-stable sorting function. (At least, I suspect this is the issue. My std::sort knowledge is limited.)

git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9674 c06c8d41-db1a-0410-9941-cceddc491573

Created by  ennewalker  on April 21, 2009
KS6Q6AWAQZWNC72M6ZPJNYLYHGK7K7G6JPGA6LPLNT37SLG2OILQC
Change contents