order inputs