adapt redis filter code for SORT list types