By default, Derby uses Unicode codepoint collation. However, you can specify territory-based collation when you create the database.
You can use the collation and territory attributes to specify territory-based collation. This type of collation applies only to user-defined tables. The system tables use the Unicode codepoint collation.
To create a database with territory-based collation:
For example:
jdbc:derby:MexicanDB;create=true;territory=es_MX;collation=TERRITORY_BASED