How to sort all records in a SET based on one BIN in Aerospike

Also gone through the link : Help debugging Error: code: 100, message: 'UDF: Execution Error 1 - #3 by denisbetsi but still could not solve my issue