Android Question Sorttype question, order within the sorted list

Discussion in 'Android Questions' started by boten, Sep 10, 2013.

  1. boten

    boten Active Member Licensed User

    Code:
    Type typ(Val as int,Name as string)
    When using lst.Sorttype("Val",True) if lst contains multiple items with the same Val

    eg:
    (5,"abc")
    (1,"xyz")
    (1,"tuv")
    (5,"ghj")

    will the resulting sorted list keep the "original order" of items with identical sort filed?
    in other words, relating to the list above, will the sorted list be:
    (1,"xyz")
    (1,"tuv")
    (5,"abc")
    (5,"ghj")


    Even "reverse original order" is accpted, e:g
    (1,"tuv")
    (1,"xyz")
    (5,"ghj")
    (5,"abc")

    or is there no guarantee of the order within the same sort-field?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    The original order will be preserved.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice