Fixed Many_to_many sort