I\'m looking for some pointers here as I don\'t quite know where to start researching this one.
I have a 2D matrix with 0 or 1 in each cell, such as:
1
Here's a starting point:
Convert each row from binary bits into a number
Sort the numbers in descending order.
Then convert each row back to binary.