Quick sorting script