simplifies code for payform sorting