Fix MiscSorter undef index and query error
Merge pull request #103 from nZEDb/dev

Fix MiscSorter undef index and query error