How to Sort TLDs Alphabetically in WHMCS

This article provides a guide for how to sort TLDs alphabetically in WHMCS.

Default TLD Order in WHMCS

By default, WHMCS will sort TLDs in the order in which they are created/imported, with each subsequently added TLD appending the current TLDs.

The output can be difficult to navigate.

How to Sort TLDs Alphabetically in WHMCS

To sort TLDs alphabetically in WHMCS, run the following SQL query on the WHMCS database:

SET @counter = -1;
UPDATE tbldomainpricing SET tbldomainpricing.order = @counter := @counter + 1
ORDER BY tbldomainpricing.extension ASC;

The TLDs will now be sorted alphabetically in WHMCS.

Domain pricing page with alphabetical TLDs

Conclusion

You now know how to sort TLDs alphabetically in WHMCS.

Read Also:

  • sql query, whmcs, top level domain
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Synchronize Server Time with WHMCS

This tutorial provides a step-by-step guide for synchronizing server time with WHMCS billing...

Remove STRICT_TRANS_TABLES in SQL Mode for WHMCS

WHMCS, a billing and support software for the web hosts, may experience a conflict with default...

Get WHMCS Support

This article provides a guide for how to get WHMCS support for licenses purchased from Rad Web...

How to Enable Subdomain Options for a Product in WHMCS

This article provides a guide for how to enable subdomain options for a product in WHMCS. While...

How to Setup WHMCS Development and Testing Environment

Creating a testing and development environment will let you verify all of your customizations...