Sort numbers after omit same numbers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • leila100
    New Member
    • Dec 2011
    • 2

    Sort numbers after omit same numbers

    I have a list of numbers in XML file.Some of them are repeated. I want to omit repeated numbers and then sort them .How can I do it in Ajax?
  • johny10151981
    Top Contributor
    • Jan 2010
    • 1059

    #2
    Miss-concept about ajax. AJAX is not a programming language or not scripting. Its a method. You can do it in Javascript

    Comment

    • leila100
      New Member
      • Dec 2011
      • 2

      #3
      Thank you for your answer.I know that, but please say me How can I do it in javascript?

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        What do you have so far?

        The basic idea is to
        1. parse the XML file
        2. store in an array/collection
        3. on each loop iteration, check against stored values - if already stored ignore
        4. when complete, sort

        Which part are you having problems with?

        Comment

        Working...