Reported By: Doug Lyman Reported On: 7/8/2022 For: Version 3.02 Build 5
# 4892Using Multiple Sort Columns When Sorting DataSet Results in Incorrect Sort The following code sorts properly (Last Name, First Name) in EWB2:
with PatientList do
begin
Columns['LASTNAME']SortDirection := sdAscending;
Columns['FIRSTNAME'].SortDirection := sdAscending;
SortCaseInsensitive := True;
Sort;
end;
In EWB3 the above code sorts the dataset by incorrectly (First Name, Last Name).
CommentsThe sort order of the columns was being determined by their position in the dataset column definitions instead of the order in which the SortDirection assignments were being made.
ResolutionFixed Problem on 7/19/2022 in version 3.02 build 6
Products AffectedElevate Web Builder Elevate Web Builder Trial