WhoKnew Views™ | Sorting & Filtering Products

Skip to main content
Table of Contents
Print

Master the four sortable columns and real-time search to find exactly what you need

With hundreds of products, finding the right ones to analyze could be overwhelming. WhoKnew Views™ Pro makes it effortless with four sortable columns and real-time search filtering—all working together to surface exactly what you need in seconds. 🎯


📊 The Four Sortable Columns

Every column header in the ranking table is clickable. Click once to sort by that column (descending), and the ▼ indicator moves to show active sort:

TOTAL VIEWS ▼

Currently sorting

CONVERSIONS

Click to sort

GROWTH %

Click to sort

ACHIEVEMENTS

Click to sort

💡 The ▼ arrow moves to whichever column is actively sorting the table


🔢 Sort by Total Views (Default)

The default sort shows products with the most views first. This is your go-to for finding top performers:

📈 When to Use

  • Finding your most popular products
  • Identifying which items get the most attention
  • Selecting products for comparison charts
  • Quick overview of store traffic distribution

// JavaScript sort logic

productStats.sort((a, b) => b.totalViews - a.totalViews)


💰 Sort by Conversions

Click the Conversions header to rank products by sales performance within the selected time range:

💰 When to Use

  • Finding your best-selling products
  • Comparing conversion counts across time periods
  • Identifying products that convert despite lower traffic
  • Revenue-focused analysis

Sorted by Conversions:

1. Premium Widget 💰 45
2. Deluxe Gadget 💰 32
3. Basic Tool 💰 18

Sorted by Views:

1. Basic Tool 1,247
2. Premium Widget 892
3. Deluxe Gadget 456

💡 Pro Tip: A product with fewer views but more conversions has a higher conversion rate—these are your hidden gems worth promoting!


📈 Sort by Growth %

Find products gaining or losing momentum by sorting on the Growth % column:

📈 When to Use

  • Spotting rising stars before they peak
  • Identifying declining products needing attention
  • Measuring marketing campaign impact
  • Detecting seasonal trends early

↗ +127.5%

Top of list (highest growth)

→ 0.0%

Middle (stable)

↘ 45.2%

Bottom of list (declining)

⚠️ Note: Growth % compares the first half of your selected time range to the second half. A product with all views in the last 3 days of a 7-day window shows positive growth, even if total views are low.


🏆 Sort by Achievements

Surface products with the most lifetime milestones by clicking the Achievements header:

🏆 When to Use

  • Finding your all-time bestsellers
  • Identifying products close to next milestone
  • Reviewing legacy products’ historical performance
  • Celebrating team wins and store success

8 milestones = 🎯🥉⭐🌶️🚀🎬🏛️🦄(1M+ lifetime views)


🔍 Real-Time Search Filtering

Above the table, the search bar filters products as you type—no need to press Enter:

🔍 widget✖

📊 Showing 1-3 of 3 products matching “widget“

🎯 Search Behavior

Type anythingFilters instantly—no Enter key needed
Case-insensitive“Widget”, “WIDGET”, and “widget” all work
Partial matching“wid” matches “Widget”, “Midwinter”, “Sandwich”
Clear button (✖)Appears when text is entered—click to reset
Pagination resetsReturns to page 1 when search changes

⚡ Search + Quick-Select Integration

Here’s the magic: quick-select buttons respect your search filter. This lets you do powerful combinations:

🎯 Example: Top 5 Widgets

  1. Type “widget” in search bar
  2. Table filters to only widget products
  3. Click ⭐ Top 5
  4. Result: Top 5 widgets selected (not top 5 store-wide)

🎯 Example: Worst Performing T-Shirts

  1. Type “t-shirt” in search bar
  2. Click column header to sort by Growth %
  3. Click 📉 Bottom 5
  4. Result: 5 t-shirts with worst growth trends

// How Top 5 respects search filter:

let filteredRankings = allRankings;
if (searchQuery.trim() !== '') {
  filteredRankings = allRankings.filter(stat =>
    stat.name.toLowerCase().includes(query)
  );
}
const topProductIds = filteredRankings.slice(0, 5);


🔄 Dynamic Recalculation

Rankings and filters recalculate whenever you change these controls:

⏰

Time Range

24h, 7d, 30d, or 90d—views and growth are recalculated for the new window

👥

Visitor Type

All, First-Time, or Returning—only matching views count

📊

Sort Column

Click any header to re-sort—rank badges reassign accordingly

🔍

Search Query

Filters list instantly—pagination and status text update


📑 Sorting + Pagination

When you change sort order, the table automatically resets to page 1. This ensures you always see the top results for the new sort:

✅ Smart Reset: Clicking a sort header sets currentPage = 1 before repopulating the table. You’ll never accidentally land on page 3 of a new sort order.

💡 Pro Tip: Combine sorting with search for laser-focused analysis. Search “blue” → Sort by Conversions → Instantly see which blue products sell best!

Share