Skip to main content
Technicalcustom ranking rulesproduct rankingB2B ranking

Custom Ranking Rules: You Control the Category Order

Learn how your own ranking rules give you full control over product sorting, scoring and optimization, with use cases.

SortNex TeamApril 2, 20266 min read

The Limitations of Off-the-Shelf Sorting

Most e-commerce platforms ship with a handful of sorting options: price, popularity, newest, and alphabetical. For B2C retailers selling a few hundred consumer products, these defaults may be sufficient. But for B2B businesses managing complex catalogs — with customer-specific pricing, contract terms, inventory constraints, and multi-factor procurement requirements — generic sorting is fundamentally inadequate.

Product discovery is one of the main levers of B2B digital commerce. When buyers cannot find the right product quickly, they leave, and in B2B a single lost order can be worth a lot of revenue.

Why Custom Ranking Logic

Every business ranks products differently. What counts as the "best" product depends on your margins, your stock, your customers and your season. Generic sorting cannot know any of that — your own rules can.

Clear and Readable

Ranking rules are expressed in business terms — sales, stock, margin, campaigns — so that both technical and non-technical teams can understand and discuss them.

Rapid Iteration

Product ranking is inherently experimental. Business conditions change, new products launch, and customer preferences evolve. Being able to adjust your rules quickly lets you test and apply new ideas in hours rather than weeks.

Full Control

You decide which signals matter and how much. There is no black box between your business goals and what your customers see first.

What Custom Ranking Algorithms Can Do

Custom ranking algorithms unlock capabilities that are impossible with generic sorting. Here are the most impactful use cases in B2B product management:

1. Multi-Factor Scoring

Instead of sorting by a single dimension, custom algorithms combine multiple factors into a composite score. A typical B2B scoring model might incorporate:

  • Margin contribution — Prioritize products that drive profitability
  • Inventory health — Surface items that need to move before they become deadstock
  • Fulfillment speed — Prioritize items available for same-day or next-day shipping
  • Contract compliance — Ensure contracted products appear prominently for authorized buyers

Each factor receives a configurable weight, and the algorithm produces a final score that determines sort order.

2. Dynamic Pricing Integration

B2B pricing is rarely fixed. Contract pricing, volume discounts, and market-responsive pricing all affect which products should be surfaced. Pricing data can feed the rule, ranking products not just by list price but by the effective price for each specific buyer.

3. Inventory-Aware Optimization

Deadstock is one of the most expensive problems in B2B distribution. Custom ranking algorithms can incorporate inventory age, stock levels, and reorder points to create sorting strategies that balance sales performance with inventory health.

For example, a "clearance boost" algorithm might temporarily increase the ranking score of items approaching their end-of-life date, while a "balanced availability" algorithm ensures that high-demand items with limited stock are not oversold.

4. Seasonal and Promotional Campaigns

Custom algorithms make it straightforward to implement time-bound ranking adjustments. A promotional campaign might boost a specific product category for two weeks, then return to the standard ranking. This removes much of the manual work of re-sorting for every promotion.

The Architecture of a Ranking Algorithm Platform

Building and deploying custom ranking rules requires more than just defining a formula. A production-grade platform must address several concerns:

Controlled Changes

Your rules are weights and settings that the platform applies for you; nothing a store enters is run as code. A new order only goes live after you compare it with the current one and approve it.

Version Control

Ranking algorithms evolve over time. A proper platform maintains a complete version history, allowing teams to roll back to previous versions, compare performance across versions, and audit changes for compliance.

Performance at Scale

B2B catalogs can contain hundreds of thousands of products. The ranking engine must process the full catalog and return sorted results promptly. This requires efficient processing and data access patterns.

Data Isolation

In a multi-tenant platform, each customer's data — products, algorithms, analytics — must be completely isolated. One tenant should never be able to access or influence another tenant's rankings.

Review Before Publishing

Calculating a new order is only the first step. Teams need to see what changes: Which products move up or down? Which end up in the top rows? Are there unexpected edge cases?

Measuring Algorithm Effectiveness

The value of a custom ranking algorithm is measured by its impact on business outcomes. Key metrics to track include:

| Metric | Description | Target | |--------|-------------|--------| | Conversion Rate | Percentage of sessions resulting in an order | Set from your own baseline | | Average Order Value | Average revenue per order | Varies by industry | | Time to First Action | Time from page load to first add-to-cart | Set from your own baseline | | Search Abandonment Rate | Percentage of searches with no click | Set from your own baseline | | Revenue per Session | Total revenue divided by sessions | Trending upward |

Track these metrics before and after applying a new order. Allow at least 30 days of data collection before drawing conclusions, and use statistical testing to validate that improvements are significant.

Where It Helps

Typical places where business-aware ranking helps:

  • Distribution companies can rank by inventory availability and margin, so buyers see products they can actually order
  • Manufacturing suppliers can lift account-specific products, shortening the path to the first add-to-cart
  • Wholesale platforms can surface cross-sell products next to the items buyers already purchase

Measure the effect on your own store with the metrics above before and after a change; results differ by catalog and audience.

Getting Started with Custom Algorithms

If you are considering custom ranking algorithms for your B2B platform, here is a practical roadmap:

  1. Audit your current sorting — Document how products are sorted today and identify the biggest gaps
  2. Define your scoring factors — Choose 4-6 factors that align with your business goals (margin, inventory, relevance, velocity, recency, personalization)
  3. Start with a weighted score — Build a simple composite score before adding more factors
  4. Measure relentlessly — Track conversion rate, AOV, and revenue per session before and after deployment
  5. Iterate weekly — Adjust weights and factors based on performance data

Custom ranking rules give B2B businesses a competitive advantage that generic sorting cannot match. The key is to start with a clear business objective, implement incrementally, and measure continuously.

Ready to set up your own ranking rule? SortNex needs no code: you build the rule in the panel by weighting measures such as sales, stock, size availability, discount and price. Request access to SortNex and run your first category ranking with your own data.

Custom Ranking Rules: You Control the Category Order