This module is part of the RL module ecosystem and included in DXPR CMS.
Advanced A/B testing for content optimization. Automatically tests all your content simultaneously using Thompson Sampling machine learning to surface winners while giving new content fair exposure.
You need RL Sorting if
- You want to A/B test your content without manual setup
- You need to test dozens or hundreds of content pieces simultaneously
- You want content optimization that adapts automatically
- You need to balance promoting winners with discovering new high-performers
Features
- Thompson Sampling algorithm for intelligent A/B testing:
- Multi-variant testing of unlimited content pieces
- Zero setup - no manual configuration or statistical analysis
- Continuous learning with automatic winner promotion
- Fair exposure for new content
- Universal entity support (nodes, users, taxonomy terms, media, custom entities)
- Views integration - simple sort plugin for any Views-compatible data source
- Time-based filtering for seasonal/campaign content
- Performance optimized with configurable caching
- Privacy-first JavaScript tracking - only anonymous statistics, GDPR compliant
Post-installation
- Install and enable the RL (Reinforcement Learning) module
- Configure permissions at /admin/people/permissions
- Edit any View display and add "RL Sorting" as the only sort criteria
- Configure cache refresh rate and time window options
- Save - content optimization begins immediately
From setup to results
- Configure: add RL Sorting as the sort criterion on any Views display and save
- Collect: as visitors browse the page, the module silently tracks impressions (content shown) and conversions (content clicked)
- Learn: Thompson Sampling builds a reward distribution for each content item, balancing exploitation of known winners with exploration of newer content
- Optimise: the sort order gradually shifts toward higher-performing content, with top positions going to items visitors engage with most
- Analyse: the companion RL module provides experiment dashboards including the 3D Posterior Landscape chart, showing how each content variant's performance converges over time
Prefer a turnkey demo site?
Spin up DXPR CMS - Drupal pre-configured with DXPR Builder, DXPR Theme, RL Sorting module, and security best practices. DXPR CMS is a marketing CMS built for teams that need content optimization out of the box.
On the frontend, visitors see content ordered by the algorithm's learned preferences; high-performing items rise to the top while new content still receives fair exposure:
Security & Privacy
- GDPR Compliant - Only anonymous interaction statistics are collected
- No Personal Data - No user identification, cookies, or tracking of individuals
- Local Data Storage - All data stays on your Drupal site, no external services
Additional requirements
This module requires:
- RL (Reinforcement Learning) module
- Drupal 10.3+ or 11
FAQ
- How does RL Sorting decide the content order?
-
RL Sorting uses Thompson Sampling, a multi-armed bandit algorithm, to rank content. Each piece of content has a reward distribution based on click-through data. On each page view, the algorithm samples from these distributions and ranks items by score, continuously shifting top positions toward content that visitors engage with most.
- Does RL Sorting work with any Drupal View?
-
Yes. Add "RL Sorting" as a sort criterion to any Views display. The module registers itself as a standard Views sort plugin, so it works with any Views-compatible data source: nodes, taxonomy terms, users, media, or custom entities. Remove other sort criteria and let RL Sorting handle the ordering.
- Does RL Sorting require manual A/B test configuration?
-
No. Unlike traditional A/B testing tools that require defining test variants and run durations, RL Sorting tests all content items simultaneously with zero manual setup. Add the sort plugin to a View, save, and optimisation begins on the next page view. New content gets fair initial exposure through Thompson Sampling's built-in exploration.
- Does RL Sorting set cookies or track individual users?
-
No. RL Sorting tracks only anonymous interaction statistics: impressions (content shown) and conversions (content clicked). It does not set cookies, store user IDs, or create visitor profiles. All data stays in your Drupal database, making it GDPR-friendly by design.
Related Modules
- Reinforcement Learning (RL) - Required. Thompson Sampling engine that powers all scoring, experiment tracking, and reporting used by RL Sorting
- Views - Required. RL Sorting registers itself as a Views sort plugin and hooks into the Views rendering pipeline
- DXPR CMS - Ships RL Sorting pre-configured alongside DXPR Builder and DXPR Theme for a turnkey content optimization setup
Project information
- Project categories: Content display, Site structure, User engagement
42 sites report using this module
- Created by jurriaanroelofs on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.
Releases
Same Thompson Sampling, honest name. Auto-migrates from ai_sorting.




