Added FuhChang's sort + search function.