# Ordered {.starlark-object} ## IN_ORDER.in_order {.starlark-signature} IN_ORDER.in_order() Checks that the values were in order. {.starlark-object} ## OrderedIncorrectly.in_order {.starlark-signature} OrderedIncorrectly.in_order() Checks that the values were in order. {.starlark-object} ## OrderedIncorrectly.new {.starlark-signature} OrderedIncorrectly.new([format_problem](#orderedincorrectly_new_format_problem), [format_actual](#orderedincorrectly_new_format_actual), [meta](#orderedincorrectly_new_meta)) Creates a new `Ordered` object that fails due to incorrectly ordered values. This creates an [`Ordered`] object that always fails. If order is correct, use the `_IN_ORDER` constant. {#orderedincorrectly_new_parameters} **PARAMETERS** [¶](#orderedincorrectly_new_parameters){.headerlink} {.params-box} :[format_problem[¶](#orderedincorrectly_new_format_problem){.headerlink}]{.span}: []{#orderedincorrectly_new_format_problem} (callable) accepts no args and returns string (the reported problem description). :[format_actual[¶](#orderedincorrectly_new_format_actual){.headerlink}]{.span}: []{#orderedincorrectly_new_format_actual} (callable) accepts not args and returns string (the reported actual description). :[meta[¶](#orderedincorrectly_new_meta){.headerlink}]{.span}: []{#orderedincorrectly_new_meta} ([`ExpectMeta`]) used to report the failure. {#orderedincorrectly_new_returns} RETURNS [¶](#orderedincorrectly_new_returns){.headerlink} : [`Ordered`] object. [`Action`]: https://bazel.build/rules/lib/Action [`ActionSubject`]: /api/action_subject [`bool`]: https://bazel.build/rules/lib/bool [`BoolSubject`]: /api/bool_subject [`CollectionSubject`]: /api/collection_subject [`depset`]: https://bazel.build/rules/lib/depset [`DepsetFileSubject`]: /api/depset_file_subject [`dict`]: https://bazel.build/rules/lib/dict [`DictSubject`]: /api/dict_subject [`Expect`]: /api/expect [`ExpectMeta`]: /api/expect_meta [`File`]: https://bazel.build/rules/lib/File [`FileSubject`]: /api/file_subject [`format_str`]: /api/expect_meta.html#expectmeta-format-str [`IntSubject`]: /api/int_subject [`Label`]: https://bazel.build/rules/lib/Label [`LabelSubject`]: /api/label_subject [`list`]: https://bazel.build/rules/lib/list [`Ordered`]: /api/ordered [`RunfilesSubject`]: /api/runfiles_subject [`str`]: https://bazel.build/rules/lib/string [`struct`]: https://bazel.build/rules/lib/builtins/struct [`StrSubject`]: /api/str_subject [`StructSubject`]: /api/struct_subject [`Target`]: https://bazel.build/rules/lib/Target [`TargetSubject`]: /api/target_subject [target-name]: https://bazel.build/concepts/labels#target-names [attr-label]: https://bazel.build/concepts/labels