Hi....now I need some helps..because I totally no idea to do that..
Now, I need to read and count the frequency for each items
Eg,
set of data in text file
1 2
1 3
1 4
2 3
3 4
Now, i wan to read each item and count the frequency for each item.
ITEM FREQUENCY
1 contain 3
2 contain 2
3 contain 3
4 contain 2
after that,I need to rearrange my data.I have to sort each item in each row from highest frequency to lowest.
Example result,
1 2
1 3
1 4
3 2
3 4
2 3(red) will sort to 3 2 because 3 is more frequent than the 2.
Hope someone can give me some idea to do this... thanks ya..