GenericList::sort: added sanity check in case you try to use a key which doesn't exist