locked
Sort 2D Array in C# RRS feed

  • Question

  • Hi Everyone!

    Please Help Me In sorting 2D Array in C#, i wan to sort 2d array in C# In ascending Order.Please Reply Of If Any One Know Abut this.

    Tuesday, August 12, 2014 10:11 AM

Answers

  • Hi Qasim,

    If you search "C# 2d array sort" in some search engines, there would be a bunch of articles or discussions talking about this. Please read these ones that I think are very good:

    Sorting a two-dimensional array in C#

    Sorting a Two-Dimensional Array in C#

    Sorting Two-​Dimensional Arrays in C#


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    • Edited by Caillen Wednesday, August 13, 2014 9:41 AM
    • Marked as answer by Caillen Thursday, August 21, 2014 4:16 PM
    Wednesday, August 13, 2014 9:39 AM
  • Hello,

    Check this code. Seems to be what you need:

    http://www.informit.com/guides/content.aspx?g=dotnet&seqNum=151

    If it answer to your question, please mark as an answer


    João Sousa (MCTS) Senior Software Engineer

    • Marked as answer by Caillen Thursday, August 21, 2014 4:16 PM
    Wednesday, August 13, 2014 9:53 AM

All replies

  • Than you should ask your question here again:

    http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=csharpgeneral

    (you posted in the C++ forum)


    Best regards

    Bordon

    Note: Posted code pieces may not have a good programming style and may not perfect. It is also possible that they do not work in all situations. Code pieces are only indended to explain something particualar.

    • Proposed as answer by Bordon Tuesday, August 12, 2014 10:48 AM
    • Marked as answer by Caillen Thursday, August 21, 2014 4:15 PM
    • Unmarked as answer by Caillen Thursday, August 21, 2014 4:16 PM
    Tuesday, August 12, 2014 10:48 AM
  • Hi Qasim,

    Can you specify which datatype your 2D array belongs to ?


    Regards, Ram.

    Tuesday, August 12, 2014 10:56 AM
  • Hi Qasim,

    If you search "C# 2d array sort" in some search engines, there would be a bunch of articles or discussions talking about this. Please read these ones that I think are very good:

    Sorting a two-dimensional array in C#

    Sorting a Two-Dimensional Array in C#

    Sorting Two-​Dimensional Arrays in C#


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    • Edited by Caillen Wednesday, August 13, 2014 9:41 AM
    • Marked as answer by Caillen Thursday, August 21, 2014 4:16 PM
    Wednesday, August 13, 2014 9:39 AM
  • Hello,

    Check this code. Seems to be what you need:

    http://www.informit.com/guides/content.aspx?g=dotnet&seqNum=151

    If it answer to your question, please mark as an answer


    João Sousa (MCTS) Senior Software Engineer

    • Marked as answer by Caillen Thursday, August 21, 2014 4:16 PM
    Wednesday, August 13, 2014 9:53 AM