move sort function into reusable factory method
make editing work again
add hover details to chart