Solved ordering issue of html table