It is well-known that the AppEngine datastore is built on top of Bigtable, which is intrinsically sorted by key. It is also known (somewhat) how the keys are generated by the AppEngine datastore: by "combining" the app id, entity kind, instance path, and unique instance identifier (perhaps through concatenation, see here).
What is not clear is whether a transformation is done on that unique instance identifier before it is stored such as would make sequential keys non-sequential in storage (e.g. if I specify key_name="Test", is "Test" just concatenated at the end of the key without transformation?) Of course it makes sense to preserve the app-ids, entity kinds, and paths as-is to take advantage of locality/key-sorting in the Bigtable (Google's other primary storage technology, F1, works similarly with hierarchical keys), but I don't know about the unique instance identifier.
Can I rely upon key_name
s being preserved as-is in AppEngine's datastore?