Fix: Sort and avoid overlapping frames
Signed-off-by: Lucas Manuel Rodriguez <lucarodriguez@gmail.com>