no-order-by
@azure-tools/typespec-azure-core/no-order-byList operations with an orderBy parameter are uncommon. Support should only be added after large collection sorting performance concerns are considered.
โ Incorrect
Section titled โโ IncorrectโUsing OrderByQueryParameter in a ResourceList:
alias MyTraits = Azure.Core.Traits.QueryParametersTrait<OrderByQueryParameter>;
op list is Azure.Core.ResourceList<TestModel, MyTraits>;Inline orderBy query parameter in a ResourceList:
alias MyTraits = Azure.Core.Traits.QueryParametersTrait<{ @query orderBy: string;}>;
op list is Azure.Core.ResourceList<TestModel, MyTraits>;โ Correct
Section titled โโ CorrectโResourceList without orderBy:
op list is Azure.Core.ResourceList<TestModel>;