String stripped = recStr.substring(start, end);
ArrayList<PlayerInfo> playerInfo = new ArrayList<PlayerInfo>();
String[] pieces = stripped.split(chr + "");
for (int i = 0; i < pieces.length; i++) {
// System.out.println("piece["+ i +"]: "+ pieces[i]);
PlayerInfo player = new PlayerInfo();
// leader
int leader = Integer.parseInt(pieces[i++]);
// goal
int goal = Integer.parseInt(pieces[i++]);
player.setScore(leader + goal);
// honor
i++;
// name
player.setName(pieces[i++]);
// ping
i++;
// roe
i++;
// kia
player.setDeaths(Integer.parseInt(pieces[i++]));
// enemy
player.setKills(Integer.parseInt(pieces[i]));
playerInfo.add(player);
}
Collections.sort(playerInfo, new ScoreComparator());
return playerInfo;