Etext template sorting by a paymentpriority(a number field)
I have updated one of our payment related etext templates as follows after adding a new field for payment priority.
The sorting by payment priority seems to be happen but it looks like it considers the field as a text field.
Therefore 45 is placed before 9 as the first char 4 is smaller than 9.
Can you please help me to fix this so that "PaymentPriority" is sorted as a number type?
Thanks!
<LEVEL> OutboundPayment
<SORT ASCENDING> PaymentPriority
<POSITION> <LENGTH> <FORMAT> <PAD> <DATA> <COMMENTS>
<NEW RECORD> FORMFEED
< DISPLAY CONDITION > SEQUENCE_NUMBER(PaySeq) > 1
1 4 Alpha CHR(12) Formfeed
5 9 Date, DD-MON-YY PaymentDate Payment Date
14 12 Number L, ‘ ’ PaymentPriority