Forum Discussion
ArtemS
Alumni
15 years agoHi Michael,
You need to create a routine that would perform the following operations:
1. Retrieve the contents of a column to be sorted into an array.
2. Sort the array. For instance, do this with JScript's array.sort() method or develop your own sorting algorithm.
3. Sort the needed column: simulate a click upon the column's header, or if the grid control exposes its members call the respective sorting method.
4. Compare the contents of the column cells against the array elements.
The implementation details of this general algorithm would depend on the particular grid control used in your application.
Good luck.
You need to create a routine that would perform the following operations:
1. Retrieve the contents of a column to be sorted into an array.
2. Sort the array. For instance, do this with JScript's array.sort() method or develop your own sorting algorithm.
3. Sort the needed column: simulate a click upon the column's header, or if the grid control exposes its members call the respective sorting method.
4. Compare the contents of the column cells against the array elements.
The implementation details of this general algorithm would depend on the particular grid control used in your application.
Good luck.