Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
How to do a ranking column in filament table that doesn't change? - Filament
F
Filament
•
2y ago
•
5 replies
pocket.racer
How to do a ranking column in filament table that doesn't change?
So i want to build a ranking table with filament
, where by the left most column will be called
'rank
'
it should go from 1 to
(number of records
)
Then as i press the sort indicator on the other columns
, it get sorted
, but ranking number on the left side don
't change
Any idea how could I do it
?
So example
:
Rank
| name
| Push Ups
| Sit Ups
| Squats
1
, Dan
, 8
, 6
, 4
2
, Harry
, 7
, 7
, 5
So if i sort by push ups
, Dan will be 1st
, Harry will be 2nd
if i sort by sit ups
, Harry will be 1st
, Dan will be 2nd
Hope i am not too confusing
. Thank you
Solution
I checked and the above works for your use case
.
Simply add the following as the first column in your table
.
Tables\Columns\TextColumn::make('rank')->rowIndex(),
Tables\Columns\TextColumn::make('rank')->rowIndex(),
Jump to solution
Filament
Join
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
how to make TextInput that doesn't have a column on database table
F
Filament / ❓┊help
3y ago
How to hide a column in a table using Filament Shield?
F
Filament / ❓┊help
17mo ago
To Change table column link
F
Filament / ❓┊help
2y ago
how to show a MorphOne table in filament Table?
F
Filament / ❓┊help
2y ago