Thank you very much for the links and for the fish as well.
If i can, what about the original order of the text? a1->b2->c3?
Unfortunately, since the lines are indexed in a more complicated fashion than the one I reported, I cannot simply sort hash keys.
In fact the original order is governed by Postgres only.