-1

次のようなデータを含む mysql テーブルがあります。

[{"name":"50_4.jpg","title":"","description":""},   
{"name":"50_5.jpg","title":"","description":""},
{"name":"50_3.jpg","title":"","description":""},
{"name":"50_2.jpg","title":"","description":""},
{"name":"50_1.jpg","title":"","description":""}]

このように画像名を昇順にソートする方法

[{"name":"50_1.jpg","title":"","description":""},
{"name":"50_2.jpg","title":"","description":""},
{"name":"50_3.jpg","title":"","description":""},
{"name":"50_4.jpg","title":"","description":""},
{"name":"50_5.jpg","title":"","description":""}]

行のエントリ数が異なり、画像名は厳密な命名規則に基づいています

4

1 に答える 1