Reorder AJAX handlers.