changed statistics
added statistics sorting
fixed chart statistics