Just for clarification:
pspad:
--------------------------------------------------------------------------------
Or number your values with 01, 02 and it will be sorted correctly
--------------------------------------------------------------------------------

No, the important part of the problem ist that the order of lines [i]that have
the same key[/i] _must stay the same_, whatever the original order is, so
if the lines contain the values
8
1
in this order (the fbr_key_id lines), that must _NOT_ get sorted to
1
8
and if the values are originally
1
3
2
in this order (the ger_key_id lines), that must _NOT_ get sorted to
1
2
3
- therefore, changing the values anyhow would not help at all.

I will find something suitable,
https://en.wikipedia.org/wiki/Insertion_sort looks good - it "does
not change the relative order of elements with equal keys", that's exactly what
I need :)

-- 
<http://forum.pspad.com/read.php?2,66273,66279>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem