* @param onlines
* @param dataGrid
* @return
*/
private List<Client> getClinetList(List<Client> onlines, DataGrid dataGrid) {
Collections.sort(onlines, new ClientSort());
List<Client> result = new ArrayList<Client>();
for(int i = (dataGrid.getPage()-1)*dataGrid.getRows();
i<onlines.size()&&i<dataGrid.getPage()*dataGrid.getRows();i++){
result.add(onlines.get(i));
}