Sorting in Subscription page.
This commit is contained in:
parent
e695807e77
commit
3ff80ee032
@ -104,7 +104,10 @@ const SubscriptionPlans = () => {
|
||||
|
||||
<div className="accordion" id={`planFeatures-${plan.id}`}>
|
||||
{plan.features?.modules &&
|
||||
Object.entries(plan.features.modules).map(([key, mod]) => {
|
||||
Object.entries(plan.features.modules)
|
||||
.sort(([, a], [, b]) => Number(b.enabled) - Number(a.enabled))
|
||||
.map(([key, mod]) => {
|
||||
|
||||
if (!mod || !mod.name) return null;
|
||||
|
||||
return (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user