Fixed BP trend graph by sorting