I have a datatable,
PId PName Qty
123 XYZ 2
223 ABC 4
434 PQR 33
I want to sort it on "PName" but not asc/ desc order, If I pass PName as "PQR", then PQR should come first and then rest of the rows, same if I pass "ABC" then "ABC" should come first and then rest of the rows. Basically wants to reshuffle the rows where first row should be the "PName" which I am holding in a variable.
Thanks
Desired output If I have "ABC", then the above datatable should reshuffle as,
PId PName Qty
223 ABC 4
123 XYZ 2
434 PQR 33
If I have "PQR", then the above datatable should reshuffle as,
PId PName Qty
434 PQR 33
123 XYZ 2
223 ABC 4