Derbyshire won their first game of the season at Hove and put a big dent in high-flying Sussex's Division One title ambitions.