Rank image

Please note that duplicate values are not allowed