Consistent data sorting

The table and the graph were sorted in oposite directions. This should
make them use the same order
Don't add stale data after changing options