(i, j int)
| 14 | func (h sortHelper) Len() int { return h.n } |
| 15 | |
| 16 | func (h sortHelper) Swap(i, j int) { |
| 17 | // Convert Go to Lua indices |
| 18 | i++ |
| 19 | j++ |
| 20 | h.l.RawGetInt(1, i) |
| 21 | h.l.RawGetInt(1, j) |
| 22 | h.l.RawSetInt(1, i) |
| 23 | h.l.RawSetInt(1, j) |
| 24 | } |
| 25 | |
| 26 | func (h sortHelper) Less(i, j int) bool { |
| 27 | // Convert Go to Lua indices |