Input form, result sorting.