How to arrange ages in ascending order dynamically

Column data should also change the index