bug fix on meta data addition
rudimentary sorting of stacked bar charts