Opened 13 years ago
Closed 13 years ago
#3162 closed defect (bug) (fixed)
Alphabetical list doesn't sort properly if user enters spaces
Reported by: | defunctlife | Owned by: | |
---|---|---|---|
Milestone: | 1.5 | Priority: | normal |
Severity: | Version: | ||
Component: | Extended Profile | Keywords: | |
Cc: |
Description
Ran into an issue where if a user had a leading space in their name, they would be placed at the top of the memberlist when sorting by alphabetical.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Sorry, I didn't have time to create a diff.
But I changed:
$sql[] = "ORDER BY pd.value ASC";
to
$sql[] = "ORDER BY ltrim(pd.value) ASC";
line 179, bp 1.2.8. bp-core/bp-core-classes.php