我想根据他们的时间升序显示我的表格。
表格样本:
+------+----------+-----+
| id | time | val |
+------+----------+-----+
| 1 | 01:22 AM | a |
+------+----------+-----+
| 2 | 03:12 PM | b |
+------+----------+-----+
| 3 | 07:21 AM | c |
+------+----------+-----+
| 4 | 01:52 PM | d |
+------+----------+-----+
| 5 | 07:40 PM | e |
+------+----------+-----+
它应该安排从上午到下午的顺序
a - 01:22 AM
c - 07:21 AM
d - 01:52 PM
b - 03:12 PM
e - 07:40 PM
表不是日期时间格式,它只是varchar