[TOC]
----------------------------------------------------------------------------------------------------
# Lists
Also see []:
- [7. Lists](http://groovy-lang.org/syntax.html#_lists)
- [3.3.2. Working with collections](
https://docs.groovy-lang.org/latest/html/documentation/#_working_with_collections)
- [Sorting](https://docs.groovy-lang.org/latest/html/documentation/#_sorting)
project1/lists.groovy
````groovy
````
As for sorting, Char GPT [] explains it the following way:
> Groovy's `sort()` method does not simply convert all elements to strings. The sorting mechanism
> in Groovy is a bit more sophisticated. Let's dive into how Groovy handles sorting when dealing
> with mixed types.
>
> In Groovy, the `sort()` method uses the `Comparable` interface to compare elements. When elements
> of different types are present in the list, Groovy tries to compare them in a way that makes
> sense, typically using their natural order. However, when a direct comparison isn't possible,
> Groovy may convert them to strings for comparison.
----------------------------------------------------------------------------------------------------
# Maps
Also see [, [9. Maps](http://groovy-lang.org/syntax.html#_maps)].
project1/maps.groovy
````groovy
````
`[1]` `getAt()` is the method for the `[]` operator. Also see
[operator overloading](#operators).
----------------------------------------------------------------------------------------------------
# Ranges
Also see []:
- [Ranges](https://docs.groovy-lang.org/latest/html/documentation/#Collections-Ranges)
- [Collection literal type inference](
http://groovy-lang.org/semantics.html#_collection_literal_type_inference)
project1/ranges.groovy
````groovy
````