Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. sort generic collection

sort generic collection

Scheduled Pinned Locked Moved C#
csharpquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    arkiboys
    wrote on last edited by
    #1

    Using .net 2.0 A generic collection is populated. i.e. ForwardsCol There are three fields in this collection. i.e. ID, Name, Lastname At present the data in the collection is not sorted. How is it possible to sort the data by Name? Is this to do with: ForwardsCol.Sort(Name) ? Thanks

    V A 2 Replies Last reply
    0
    • A arkiboys

      Using .net 2.0 A generic collection is populated. i.e. ForwardsCol There are three fields in this collection. i.e. ID, Name, Lastname At present the data in the collection is not sorted. How is it possible to sort the data by Name? Is this to do with: ForwardsCol.Sort(Name) ? Thanks

      V Offline
      V Offline
      Vasudevan Deepak Kumar
      wrote on last edited by
      #2

      Would this help you? http://www.c-sharpcorner.com/UploadFile/dipenlama22/SortingUsingGeneric07052006081035AM/SortingUsingGeneric.aspx?ArticleID=dafdb8cc-fd02-4a4d-bd17-0c5785b1b91d[^]

      Vasudevan Deepak Kumar Personal Homepage Tech Gossips

      1 Reply Last reply
      0
      • A arkiboys

        Using .net 2.0 A generic collection is populated. i.e. ForwardsCol There are three fields in this collection. i.e. ID, Name, Lastname At present the data in the collection is not sorted. How is it possible to sort the data by Name? Is this to do with: ForwardsCol.Sort(Name) ? Thanks

        A Offline
        A Offline
        aamironline
        wrote on last edited by
        #3

        :) New verion of Generics.Net is coming next week. That will solve your problem...

        M Aamir Maniar aamirOnline.com

        A 2 Replies Last reply
        0
        • A aamironline

          :) New verion of Generics.Net is coming next week. That will solve your problem...

          M Aamir Maniar aamirOnline.com

          A Offline
          A Offline
          arkiboys
          wrote on last edited by
          #4

          Please provide more information. i.e. where to download and look for it, etc... Thanks

          1 Reply Last reply
          0
          • A aamironline

            :) New verion of Generics.Net is coming next week. That will solve your problem...

            M Aamir Maniar aamirOnline.com

            A Offline
            A Offline
            arkiboys
            wrote on last edited by
            #5

            Please provide more information. i.e. where to look and download from... Thanks

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups