Ecto order_by

Do you mind giving more clarity on how it is able to sort by both fields(type and name) when only type is given as sort_by?