Change QLISTTBL_OPT_LOOKUPBACKWARD to QLISTTBL_OPT_LOOKUPFORWARD.