Change Css Property Javascript Array Sort Function In Java