| id | category |
|---|---|
| 1 | eat,drink |
| 2 | drink,cup |
| 3 | eat,take |
| 4 | tea,eat |
i need to order records which have max number of category repeated by category column, ex- eat are repeated 3 times then it is comes first order and then drink comes then tea or cup comes.. thanks in advance..
