sorting json added, html revised for array obj