Opened 16 years ago
Closed 16 years ago
#3162 closed defect (bug) (fixed)
Alphabetical list doesn't sort properly if user enters spaces
| Reported by: | defunctlife | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.5 |
| Component: | Extended Profile | Version: | |
| Severity: | 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