Featured Categories
-
SiteLink General Discussions
Software Operations
-
How-To's
Answers to common how-to questions about SiteLink.
-
What's New
Learn about recent updates to SiteLink
Why are reports organized by first digit instead of whole number?
Answers
-
themage Registered User, Daily Operations Certified, Advanced Operations Certified, Administrator Certified, myHub Certified ✭✭✭✭✭Sitelink is using alpha-numeric sorting, since many of the sites use alpha numeric unit designations (A01, C45, etc).
The only way I can think of right now to sort by whole number is to export it to excel and sort it there.0 -
@sschreiber2785 - A bit of background on this one, this is not a SiteLink-specific issue but rather how alphanumeric string sorting works. Unit names are not numbers/integers but character strings -- even if all of a sites' unit names represent a number.Database logic is that it sorts everything by the first digit, then second, etc. The only way to overcome this is to make all their unit names the same length. For example, 06 should be 006 and 23 should be 023.. Assuming your max unit number length is 3 digits. If you have unit number length of 4 digits, then make them all 4 digits.
Hope that helps!0 -
"Database logic is that it sorts everything by the first digit, then second, etc. The only way to overcome this is to make all their unit names the same length."
Hi Storable, the request by @sschreiber2785 is SO simple to implement. Here, I will do it for you as a courtesy to all the customers. Your friendly neighborhood Database Admin.

The following query will work for everyone no matter what their numbering format is.
With this mix of formats: C45, A01, 2 , 1, 03, 01, 003
The query result would be: 1, 2, 01, 03, 003, A01, C45
-- Finally by string value<br>SELECT * FROM units ORDER BY CASE WHEN id REGEXP '^[0-9]+$' THEN 1 ELSE 2 END, -- Numbers first, then letters LENGTH(unit_id), -- Then by string length id;
* By the way, I am available if you want to hire me.
0
Categories
- All Categories
- 2 What's New
- SiteLink Community Discussions
- 2.1K SiteLink General Discussions
- 82 SiteLink myHub
- 50 Lead to Lease
- 16 Price Optimization
- 37 SiteLink Certified Professional
- 348 How-To's
- 97 Training Videos
- 7 Other Resources
- 242 SiteLink, SpareFoot & storEDGE merge
- Self-Storage Operations
- 67 Starting Out in Self-Storage
- 3 3rd Party Management
- 235 Regional Discussions
- 194 Miscellaneous Discussions
- 40 Industry Webinars
- SiteLink Marketplace
- 66 Self-Storage Website Design & Listing Services
- 34 Credit Cards & Payment Processing
- 33 Self-Storage Call Centers & Kiosks
- 46 Notifications, SMS & Phone Integrations
- 66 Self-Storage Insurance, Legal & Auctions
- 11 Self-Storage Revenue Management & Analytics
- 26 Gates & Access for Self-Storage Facilities
- 12 Ancillary Services for Self-Storage Facilites
- Self-Storage Times
- 59 News
- 30 Opinion
- 146 Lifestyle
