I need to find the best way to contain baseball statistics in this format
So a sample file might look something like this.
and I need to be able to sort it by either team, hits, batting average, and slugging percentage.
I was thinking a giant table might be simple, but when you sort a table, all the columns move with the row, right?
is there a better way than a table? I guess thats the real question I'm asking
Code:
player's name (20 characters) player's team (3 characters) at bats (integer) hits (integer) doubles (integer) triples (integer) homeruns (integer)
Code:
David Aardsma CHW 0 0 0 0 0 Bobby Abreu NYY 605 171 40 5 16 Jeremy Accardo TOR 0 0 0 0 0 Russ Adams TOR 60 14 3 0 2 Brian N. Anderson CHW 17 2 1 0 0
I was thinking a giant table might be simple, but when you sort a table, all the columns move with the row, right?
is there a better way than a table? I guess thats the real question I'm asking
Comment