For GComparator , 'G' stands for the term 'Generic'.
It is a generic java comparator ,that can be used in different types of sorting.
1.GComparator can sort any java data type ,in any mode (ascending/descending) .
2.It can perform multi-field sort.
Advantages
1.As GComparator is java data type agnostic ,you do not need to write new comparator for different java data types.
2.Complicated sorting like sql order by queries can also be achieved using this comparator.Just pass the required sorting information to GComparator and it will do the sorting task for you.
How it works ?
Suppose there is a class named Cricketer.Cricketer class is shown below .
```
public class Cricketer
{
private String