The present disclosure relates to a method to be performed at a user equipment and to a user equipment operable in a wireless communications system supporting direct communication between userequipments. Accordingly, a sidelink configuration is stored in the user equipment, 5 specifying aplurality of destination groups, each destination group including possible destinations for sidelink data as well a logical channel priority is stored for each logical channel out of logical channels configured for the sidelink destination groups. The terminal then selects a sidelink destination group with a sidelink logical channel having sidelink data available for transmission with the 10 highest logical channel priority among the sidelink logical channels having data available for transmission, and allocates radio resources to the sidelink logical channels belonging to the selected sidelink destination group in decreasing priority order.