soring elements by decimal and binary, and sum of money