added sort function
basic chart added