mirror of
https://github.com/MuntashirAkon/android-debloat-list.git
synced 2025-10-10 06:57:23 +08:00
Sort lists by ID
This commit is contained in:
@@ -30,6 +30,9 @@ foreach ($list as $item) {
|
||||
|
||||
# Save to dir
|
||||
foreach ($new_list as $list_type => $list) {
|
||||
usort($list, function ($o1, $o2) {
|
||||
return $o1['id'] <=> $o2['id'];
|
||||
});
|
||||
file_put_contents(__DIR__ . '/' . $list_type . '.json', json_encode($list, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user