Sorting List from the line or vector

Hi, guys!

I created one routine to enumerate my parking elements. But I would like it was enumerate using one reference line or vector, this way I can control the order the enumeration without this the order is always the order of Id.
Someone can help with this, please?