How to make a sort List by ascending number with dynamic component

help me, i want create a sort list by distance in dynamic component

What have you tried , show us pls