fixes a bug in groupkey index and indexawarescan when using other than equal due to missing sort of pos ranges