In a case where there is default order_by :name :asc, if order_by :type :desc is given, does ecto automatically order them by type first and then name?
%Post{
name : A,
type: free
}
%Post{
name : B,
type: paid
}
%Post{
name : C,
type: free
}
%Post{
name : D,
type: paid
}
In this case, it returns in this order Post B, Post D, Post A, Post C. This is my expected result but I just want to know how this happens.
Thanks! ![]()






















