IDEMPIERE-4861 : GenerateModel / Reference List / Use Value for ordering (#759)

This commit is contained in:
Nicolas Micoud 2021-07-02 04:31:21 +02:00 committed by GitHub
parent 361edea318
commit ffc9bf12fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -623,7 +623,7 @@ public class ModelClassGenerator
.append(AD_Reference_ID);
StringBuilder statement = new StringBuilder();
//
String sql = "SELECT Value, Name FROM AD_Ref_List WHERE AD_Reference_ID=? ORDER BY AD_Ref_List_ID";
String sql = "SELECT Value, Name FROM AD_Ref_List WHERE AD_Reference_ID=? ORDER BY Value";
PreparedStatement pstmt = null;
ResultSet rs = null;
try