[rules-users] how to sort and validate