I have method which accepts 2D array, i want to know
how to sort two dimensional array in asp,net c#
Sort two dimensional array
6 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Abhinav Golwalkar87 reputationPosted Dec 17, 2013, 9:35 PM EST
In what dimension you want to sort the 2D array.
Any example as expected result?
samantaRank #3,157 · 454 reputationPosted Dec 17, 2013, 10:07 PM EST
Jignesh TrivediRank #16 · 50.3K reputationPosted Dec 17, 2013, 10:21 PM EST
can you please provide example data and expected output?
samantaRank #3,157 · 454 reputationPosted Dec 17, 2013, 10:35 PM EST
sortArray(Array arr)
{
return sorted arr;
}
Jignesh TrivediRank #16 · 50.3K reputationPosted Dec 17, 2013, 10:40 PM EST
hi,
you can fetch record from the database right?
so you can sort the record at the time of fetch wherever order you want.
hope this will help you.
samantaRank #3,157 · 454 reputationPosted Dec 17, 2013, 10:45 PM EST
i add items from listbox1 to listbox2 but
when i remove listbox2 items, removed items must be available at listbox1 in same order.