Fixed chunk sorting

Signed-off-by: Brandyn A. White <bwhite@dappervision.com>