assertj / assertj/assertj-db

Sort Changes by the specified field other than the primary key

Open
#259 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
130
Forks
21
PR merge metrics
No merged PRs in 30d

Description

According to documentation, changes sorted by primary key and if there are no primary key by the values of the row (for a modification).
My table has a primary key, but it doesn't fit because it has a type UUID. So the changes is sorted randomly.

Is there any function to set sorting on any other field? If not, can you add?

I tried like below code, it doesn't work:

`Table(dataSource, "table_name", arrayOf(Order.asc("created")))...`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.