我基本上有下表:
id (int) username (string) message (string) rating (int)
所以条目看起来像这样:
1 thomas "hello..." 3
2 Tina "blabla" 2
3 thomas "blub" 1
4 julia "basgs" 3
...
我想检索所有消息中评分最高的前 10 个用户名。所以我想对它看起来的表格进行排序
1. thomas 4
2. julia 3
3. Tina 2