Sorting Internal Tables in ABAP - Stable sort
Λεπτομέρειες
- Λεπτομέρειες
- Κατηγορία: ABAP
- Δημιουργηθηκε στις Πέμπτη, 15 Νοεμβρίου 2012 08:37
- Τελευταία Ενημέρωση στις Πέμπτη, 15 Νοεμβρίου 2012 08:43
- Δημοσιεύτηκε στις Πέμπτη, 15 Νοεμβρίου 2012 08:37
- Γράφτηκε από τον/την Administrator
- Εμφανίσεις: 27240
Σελίδα 4 από 5
Stable Sort
The option
SORT <itab> ... STABLE.
allows you to perform a stable sort, that is, the relative sequence of lines that are unchanged by the sort is not changed. If you do not use the STABLE option, the sort sequence is not preserved. If you sort a table several times by the same key, the sequence of the table entries will change in each sort. However, a stable sort takes longer than an unstable sort.