Added a dynamic sorting function to keep visualized data in its proper place
Added a dynamic sorting function to keep visualized data in its proper place