(svn r11075) [NoAI] -Fix: sorting on value did not work as expected. Patch by GeekToo.
--- a/src/ai/api/ai_abstractlist.cpp Sun Sep 02 11:17:33 2007 +0000
+++ b/src/ai/api/ai_abstractlist.cpp Sun Sep 09 21:14:29 2007 +0000
@@ -300,8 +300,8 @@
break;
case SORT_BY_VALUE:
- if (ascending) this->sorter = new AIAbstractListSorterItemAscending(this);
- else this->sorter = new AIAbstractListSorterItemDescending(this);
+ if (ascending) this->sorter = new AIAbstractListSorterValueAscending(this);
+ else this->sorter = new AIAbstractListSorterValueDescending(this);
break;
default: