Add name and sorting option to statistics