Sorting order by unique pattern

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mb60
    New Member
    • Aug 2008
    • 37

    Sorting order by unique pattern

    In my database I have a column named CHAPTER. It contains the names of chapters like - Echinodermata, BIrds, Cnidaria, Amphibia etc., When I tried to sort them they are sorted either in ascending or descendig orders. I would like to sort the records in the following order
    Amphibia,BIrds, Cnidaria,Echino dermata,Amphibi a, BIrds, Cnidaria, Echinodermata.. .
  • missinglinq
    Recognized Expert Specialist
    • Nov 2006
    • 3533

    #2
    Create a new field with the Datatype of Number, Then assign the numbers in the order you want and sort on them.

    Linq ;0)>

    Comment

    • mb60
      New Member
      • Aug 2008
      • 37

      #3
      Thank You sir.
      it worked.

      Comment

      • missinglinq
        Recognized Expert Specialist
        • Nov 2006
        • 3533

        #4
        Glad we could help!

        Linq ;0)>

        Comment

        Working...