Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow sort of operationames with leading spaces #463

Merged
merged 1 commit into from
Nov 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Version Control.accda.src/modules/clsPerformance.cls
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ Private Function SortItemsByTime(dItems As Dictionary) As Dictionary
' Build our list of records
For Each varKey In dItems.Keys
' Create a record like this: "00062840.170000|Export Form Objects ..."
strRecord = Format$(dItems(varKey).Total, "00000000.000000") & "|" & PadRight(CStr(varKey), 255)
strRecord = Format$(dItems(varKey).Total, "00000000.000000") & "|" & CStr(varKey)
' Add to array.
varItems(lngCnt) = strRecord
' Increment counter for array
Expand All @@ -624,7 +624,7 @@ Private Function SortItemsByTime(dItems As Dictionary) As Dictionary
For lngCnt = dItems.Count - 1 To 0 Step -1
' Parse key from record (text after first pipe character)
strRecord = varItems(lngCnt)
varKey = Trim$(Mid$(strRecord, InStr(1, strRecord, "|") + 1))
varKey = Mid$(strRecord, InStr(1, strRecord, "|") + 1)
' Reference performance item class
Set cItem = dItems(varKey)
' Add to dictionary of resorted items
Expand Down