Added sorting to HTML5 interface.