alexcrawford/lexorank-php
Simple PHP implementation of Atlassian JIRA’s LexoRank for ordering database lists. Reorder items in O(1) by updating only the moved row’s rank value, avoiding mass updates and costly transactions.
A simple PHP implementation of xissy/lexorank
LexoRank is a ranking system introduced by Atlassian JIRA.
What is the best representation of an ordered list in a database? With a dumb order number based ranking system, re-ordering a row of a list may require updating all rows of the list in a transaction, which is O(n).
LexoRank makes it O(1). All you need to do is updating the re-ordered row's order field.
How can I help you explore Laravel packages today?